package com.daedalus.Inheritanca.Administrata;/*
 * Created with IntelliJ IDEA.
 * Author: Kostika Gorica
 * Date: 12-12-18
 * Time: 3.57.MD
 */

public class PunonjesSalesMan extends Punonjes {

    double shitjet;

    public PunonjesSalesMan(String emri, String mbiemri, double rroga, double sh) {
        super(emri, mbiemri, rroga);
        this.shitjet=sh;
    }

    @Override
    double getEarnings() {
        return (rroga+0.1*shitjet);  //To change body of implemented methods use File | Settings | File Templates.
    }
}
